package com.framework.loippi.entity;

import com.framework.loippi.mybatis.eitity.GenericEntity;
import com.framework.loippi.mybatis.ext.annotation.Column;
import com.framework.loippi.mybatis.ext.annotation.Table;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Entity - 通知消息用户关联表
 * 
 * @author wmj
 * @version 2.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_NOTICE_USER_REF")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) 
@ApiModel(value="通知消息用户关联表",description="通知消息用户关联表")
public class NoticeToUser implements GenericEntity {

	private static final long serialVersionUID = 5081846432919091193L;

	/** 主键 */
	@Column(id = true, name = "id", updatable = false)
	@ApiModelProperty(value = "主键")
	private Long id;
	
	/** 消息id */
	@Column(name = "notice_id" )
	@ApiModelProperty(value = "消息id")
	private Long noticeId;
	
	/** 用户id */
	@Column(name = "user_id" )
	@ApiModelProperty(value = "用户id")
	private Long userId;
	
	/** 消息状态（0 未读，1  已读） */
	@Column(name = "notice_status" )
	@ApiModelProperty(value = "消息状态（0 未读，1  已读）")
	private Integer noticeStatus;
	
	/** 创建时间 */
	@Column(name = "create_time" )
	@ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;

	/** 用户通知 */
	@ApiModelProperty("用户通知")
	private Notice notice;
}
